package com.wx.entity;

import com.wx.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <p>Title:      SysAeReportLog. </p>
 * <p>Description AE上报记录 </p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company:    医百科技有限公司 </p>
 *
 * @author         yangwensheng@100doc.com.cn
 * @since      2021-03-22 10:51:46
 */
@Table(name = "sys_ae_report_log")
@Data
@ApiModel(value = "SysAeReportLog")
public class SysAeReportLog extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 患者id
	 */
	@Column(name = "patient_id")
	@ApiModelProperty(value = "患者id")
	@NotEmpty(message = "患者id")
	private String patientId;

	/**
	 * 护士id
	 */
	@Column(name = "open_id")
	@ApiModelProperty(value = "护士的openId（上报人的openId）")
	@NotEmpty(message = "护士的openId不能为空")
	private String openId;

	/**
	 * 联系人id
	 */
	@Column(name = "content")
	@ApiModelProperty(value = "上报内容（JSON字符传）")
	@NotEmpty(message = "上报内容")
	private String content;

	@Transient
	@ApiModelProperty(value = "患者姓名")
	private String patientName;

	@Transient
	@ApiModelProperty(value = "护士姓名")
	private String nurseName;

}
